<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />

<link href="css/adminstyle.css" rel="stylesheet" type="text/css">

<title>管理区域</title>

<script src="js/js.js"></script>

<script>

function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='product_delete.html?id='+id;

	}

}

function submits1(value){

	if(confirm('是否确认'))	{

		document.getElementById('form').submit();

	}

}

</script>

</head>



<body>
<div id="man_zone">
<div style="background-color:#FFFFFF ">

<div class="search_condition">

<div style="margin-top:10px;margin-bottom:10px;">

 <form method="get"  action="">

  名称<input name="name" type="text" value="<?=getParamValue('name')?>" /> 

  &nbsp; 

  编号<input name="serial_number" type="text" value="<?=getParamValue('serial_number')?>" /> 

<select name="type">

    <option value="">请选择</option>

   <?=page_modifier_options($type_options,getParamValue('type')); ?>

  </select>

  <select name="status">

  <option value="">状态</option>

  <?=page_modifier_options($status_options,getParamValue('status')); ?>

  </select>
  <select name="active_type">

  <option value="">活动类型</option>

  <?=page_modifier_options($activeType_options,getParamValue('active_type')); ?>

  </select>

  &nbsp;&nbsp;&nbsp;

  <input class="PublicBot" name="search"  type="submit" value="检索" />

  <input class="PublicBot" name="" type="button" onclick="window.location.href='product_add.html'" value="添加" />

  </form>

</div>

</div>

<br>



<form method="get" id="form" action="product_delete.html">

  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="25"></td>

  <td >名称</td>
  <td>活动类型</td>
  <td>产品编号</td>

   <td>课节</td>

   <td>有效期</td>

   <td>价格</td>

   <td>类型</td>

      <td>状态</td>



      <td align="center">编辑</td>

    </tr>

    <?

    foreach($list as $v){

	?>

      <tr bgcolor="#FFFFFF">

     <td align="center" width="5%"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

     <td  width="15%"><a href="user_info.html?id=<?=$v['id']?>"><?=$v['name']?></a></td>
     
     <td align="center" width="10%"  ><?=$v['activeType_name']?></td>
     
     <td align="center" width="10%"><?=$v['serial_number']?></td>

     <td align="center" width="10%" ><?=$v['lesson']?></td>

     <td align="center"  width="10%" ><?=$v['period_validity']?></td>

     <td align="center" width="10%"  ><?=$v['price']?><?if ($v['discount'] >0){?>(折扣:<?=$v['discount']?>)<?}?></td>

     <td align="center" width="10%"  ><?=$v['type']?></td>

     <td align="center" width="10%"  ><?=$v['status']?></td>

      <td align="center"  width="20%" ><a onclick=delc(<?=$v['id']?>) 

    href="javaScript:void(0);">删除</a>　　<a href="product_add.html?id=<?=$v['id']?>">修改</a></td>

    </tr> 

    <?

	}

	?>

    <tr bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="9"><input type="button" class="PublicBot" name="delete" id="button" value="批量删除" onClick="submits1()">

 &nbsp;&nbsp;&nbsp;&nbsp;

 <?  echo $page; ?>

 </td>

 </tr>

  </table>

 </form>

</div>
</div>
</body>

</html>

